package com.personal.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */
public enum OrdersEnum implements Code {

    /** 订单相关 */
    ORDERS_PARAM_ERROR(4001,"订单传递参数错误，请检查"),
    ORDERS_ACCOUNT_BALANCE_ENOUGH(4002,"账户余额不足"),
    ORDERS_BUY_ERROR(4003,"购买失败，请重试或联系客服")


    ;

    private int code;
    private String msg;
    OrdersEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
